package com.smartstate.autoMaticControl.entity;

import com.smartstate.common.util.verify.VerifyAttribute;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Entity;

@Data
@Entity
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "刀具主表")
public class Tool extends EntityBase {


  @ApiModelProperty(value = "刀具身份Key（必填）")
  @VerifyAttribute
  private String toolKey;

  @ApiModelProperty(value = "刀座ID")
  private Integer colterArmId;

  @ApiModelProperty(value = "刀具模型ID")
  private Integer modelId;

  @ApiModelProperty(value = "刀具模型编号")
  private String modelCode;

  @ApiModelProperty(value = "设备ID")
  private Integer equipmentId;

  @ApiModelProperty(value = "设备编号")
  private String equipmentCode;

  @ApiModelProperty(value = "刀具长度")
  private String length;

  @ApiModelProperty(value = "刀具直径")
  private String diameter;

  @ApiModelProperty(value = "刀具寿命")
  private String life;

  @ApiModelProperty(value = "预警寿命")
  private String warningLife;

  @ApiModelProperty(value = "刀具状态")
  private String toolState;

  @ApiModelProperty(value = "刀具锁定")
  private String toolLock;

  @ApiModelProperty(value = "是否准备换刀")
  private String isPreparetool;

  @ApiModelProperty(value = "创建班次")
  private Integer shiftId;

  @ApiModelProperty(value = "备注")
  private String remark;
}
